package rickyGame.game.action.state
{
	import rickyGame.game.Fighter;
	
	/**
	 * 改变对方的阵营
	 */
	public class InstalChangeGroupAct extends StateAct
	{
		public function InstalChangeGroupAct(actor:Fighter, endTime:Number)
		{
			super(actor, null,endTime);
			
		}
		
		override public function begin():void
		{
			if(this.actor.group==0)
				this.actor.group=1;
			else if(actor.group==1)
				actor.group=0;
			super.begin();
		}
		
		override public function end():void
		{
			if(this.actor.group==1)
				this.actor.group=0;
			else if(actor.group==0)
				actor.group=1;
		}
		
		//
		private var _speed:Number;
	}
}